/**
 * 收费方案api
 */

import axios from '@/libs/api.request'
export default class InsureProjectApi {
  // 列表查询
  static SearchProjects (params) {
    return axios.request({
      url: '/InsureProject/SearchProjects',
      method: 'post',
      data: params
    })
  }

  // 删除收费方案
  static DeleteProject (params) {
    return axios.request({
      url: '/InsureProject/DeleteProject',
      method: 'delete',
      params: params
    })
  }

  // 添加社保，公积金，商保收费
  static PostInsureProject (params) {
    return axios.request({
      url: '/InsureProject/PostInsureProject',
      method: 'post',
      data: params
    })
  }

  // 税费
  static PostTaxProject (params) {
    return axios.request({
      url: '/InsureProject/PostTaxProject',
      method: 'post',
      data: params
    })
  }

  // 服务费

  // 年度总包收费
  static PostYearlySFProject (params) {
    return axios.request({
      url: '/InsureProject/PostYearlySFProject',
      method: 'post',
      data: params
    })
  }

  // 按岗位薪资收费
  static PostBySalarySFProject (params) {
    return axios.request({
      url: '/InsureProject/PostBySalarySFProject',
      method: 'post',
      data: params
    })
  }

  // 按人员数量收费
  static PostByCountSFProject (params) {
    return axios.request({
      url: '/InsureProject/PostByCountSFProject',
      method: 'post',
      data: params
    })
  }

  // 按人头收费
  static PostByTypeSFProject (params) {
    return axios.request({
      url: '/InsureProject/PostByTypeSFProject',
      method: 'post',
      data: params
    })
  }

  // 按组合项目收费
  static PostByCombiningTypeSFProject (params) {
    return axios.request({
      url: '/InsureProject/PostByCombiningTypeSFProject',
      method: 'post',
      data: params
    })
  }

  // 按基数收费
  static PostByBaseAmtSFProject (params) {
    return axios.request({
      url: '/InsureProject/PostByBaseAmtSFProject',
      method: 'post',
      data: params
    })
  }

  // 详情
  static SingleProject (params) {
    return axios.request({
      url: '/InsureProject/SingleProject',
      method: 'get',
      params: params
    })
  }

  // 获取绑定客户
  static Customers (params) {
    return axios.request({
      url: '/InsureProject/Customers',
      method: 'post',
      data: params
    })
  }

  // 获取已绑定客户
  static SearchProjectCustomers (params) {
    return axios.request({
      url: '/InsureProject/SearchProjectCustomers',
      method: 'post',
      data: params
    })
  }

  // 绑定客户
  static BindCustomer (params) {
    return axios.request({
      url: '/InsureProject/BindCustomer',
      method: 'get',
      params: params
    })
  }

  // 解绑客户
  static UnBindCustomer (params) {
    return axios.request({
      url: '/InsureProject/UnBindCustomer',
      method: 'get',
      params: params
    })
  }

  // 获取绑定员工
  static Employees (params) {
    return axios.request({
      url: '/InsureProject/Employees',
      method: 'post',
      data: params
    })
  }

  // 绑定员工
  static BindEmployee (params) {
    return axios.request({
      url: '/InsureProject/BindEmployee',
      method: 'get',
      params: params
    })
  }

  // 解绑员工
  static UnBindEmployee (params) {
    return axios.request({
      url: '/InsureProject/UnBindEmployee',
      method: 'get',
      params: params
    })
  }

  // 设为默认值
  static SetDefault (params) {
    return axios.request({
      url: '/InsureProject/SetDefault',
      method: 'get',
      params: params
    })
  }

  // 批量绑定员工
  static BatchBindEmployee (params) {
    return axios.request({
      url: '/InsureProject/BatchBindEmployee',
      method: 'post',
      data: params
    })
  }

  // 批量解绑员工
  static BatchUnBindEmployee (params) {
    return axios.request({
      url: '/InsureProject/BatchUnBindEmployee',
      method: 'post',
      data: params
    })
  }

  // 批量绑定客户
  static BatchBindCustomer (params) {
    return axios.request({
      url: '/InsureProject/BatchBindCustomer',
      method: 'post',
      data: params
    })
  }

  // 批量解绑客户
  static BatchUnBindCustomer (params) {
    return axios.request({
      url: '/InsureProject/BatchUnBindCustomer',
      method: 'post',
      data: params
    })
  }
}